package cn.yunhe.service;

import cn.yunhe.dao.INewsDao;
import cn.yunhe.dao.impl.NewsDaoImpl;
import cn.yunhe.entity.News;

import java.util.List;

public class NewsService {
    INewsDao newsDao = new NewsDaoImpl();


    public List<News> getNewsByPage(String title, int pageSize, int pageNum) {
        return newsDao.getNewsByPage(title, pageSize, pageNum);
    }

    public int getNewsCount() {
        return newsDao.getNewsCount();
    }

}
